home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
djgpp
/
tests
/
t17.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-09
|
337b
|
26 lines
#include <stdio.h>
void test(const char *);
const char *s1="1";
const char *s2="1/2";
const char *s3="1/2/3";
const char *s4="1/2/3/4";
main()
{
test(s1);
test(s2);
test(s3);
test(s4);
}
void test(const char *s)
{
int a;
printf("%d\n", sscanf(s, "%d/%d/%d/%d", &a, &a, &a, &a));
}